const {createProxyMiddleware} = require('http-proxy-middleware')

module.exports = function (app) {
    app.use(createProxyMiddleware('/api', {
      target: 'http://localhost:7001',
      secure: false,
      changeOrigin: true,
    }))
    app.use(createProxyMiddleware('/static', {
      target: 'http://localhost:7001',
      secure: false,
      changeOrigin: true,
    }))
    app.use(createProxyMiddleware('/graph', {
      target: 'http://localhost:7001',
      secure: false,
      changeOrigin: true,
    }))
}